<template>
  <div class="wrap">
    <div class="wrap-item" @click="click">
      <div>
        <img :src="item.icon" alt style="width:60px;height:70px" />
      </div>
      <div>{{item.name}}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    item: {
      type: Object,
    },
  },
  methods: {
    click(){
      this.$emit("goClass")
    }
  },
};
</script>

<style scoped>
.wrap {
  width: 30%;
  height: 100px;
  /* border: 1px solid red; */
}
.wrap-item {
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  display: flex;
 
}
</style>